﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using InspectionDAL;

namespace InspectionVehicule.Pages
{
    public partial class Terminer : PageBase
    {

        private Inspection _donnees;
        public override object State
        {
            get
            {
                return _donnees;
            }
            set
            {
                _donnees = (Inspection)value;
            }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                lblMecanicien.Text = _donnees.Mecanicien;
                lblMarqueVehicule.Text = _donnees.Vehicule.Marque;
                lblNombreDefectuosite.Text = _donnees.DefectuositeVehicule.Count.ToString();
            }
        }

        protected override string EtapeEnCours
        {
            get { return "Terminer"; }
        }
    }
}